{* Smarty *}
<div id="main_header">{t}{$command}{/t}: {t}{$option}{/t}</div>   

<div class="box">
	<table cellspacing="0">
		<caption>{t}caption database{/t}</caption>
		<tr>
			<th class="left">{t}Name{/t}</th>
			<th class="left">{t}Rows{/t}</th>
			<th class="left">{t}Table_size{/t}</th>   
			<th class="left">{t}Data_free{/t}</th>
		</tr>
	 {foreach item=db from=$status}
		<tr>                            
			{if $db.4 > 0}
			<td class="left"><font color="red">{$db.0}</font></td>
			<td class="left"><font color="red">{$db.1}</font></td>
			<td class="left"><font color="red">{$db.2}</font></td>   
			<td class="left"><font color="red">{$db.3}</font></td>
			{else}
			<td class="left">{$db.0}</td>
			<td class="left">{$db.1}</td>
			<td class="left">{$db.2}</td>   
			<td class="left">{$db.3}</td>
			{/if}
		</tr>
	 {/foreach}  
		<tr>       
			<th class="left">{t}total:{/t} {$sum_name}</th>
			<th class="left">{$sum_rows}</th>
			<th class="left">{$sum_size}</th>
			<th class="left">{$sum_datafree}</th>
		</tr>
		<tr>
			<td colspan="4"><input type="button" value="{t}OPTIMIZE{/t}" onclick="location.href='/admin/config/database/optimize'"></td> 
		</tr> 
	</table>	
</div>